package com.xmut.mall.store.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class StoreBankDto {

    @Length(min = 1, max = 200)
    @NotBlank(message = "结算银行开户行名称不能为空")
    private String settlementBankAccountName;

    @Length(min = 1, max = 200)
    @NotBlank(message = "结算银行开户账号不能为空")
    private String settlementBankAccountNum;

    @Length(min = 1, max = 200)
    @NotBlank(message = "结算银行开户支行名称不能为空")
    private String settlementBankBranchName;

    @Length(min = 1, max = 50)
    @NotBlank(message = "结算银行支行联行号不能为空")
    private String settlementBankJointName;

    @NotBlank(message = "开户银行许可证电子版不能为空")
    private String settlementBankLicencePhoto;

    @NotBlank
    private Long memberId;
}
